package com.tms.order.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 司机业绩统计对象 sys_driveryj
 *
 * @author ruoyi
 * @date 2024-10-25
 */
public class Driveryj extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 司机ID */
    @Excel(name = "司机ID")
    private String driverId;

    /** 编号 */
    private Long id;

    /** 司机姓名 */
    @Excel(name = "司机姓名")
    private String driverName;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private String phoneNumber;

    /** 运单完成数量 */
    @Excel(name = "运单完成数量")
    private Long completedOrders;

    /** 按时完成数量 */
    @Excel(name = "按时完成数量")
    private Long onTimeOrders;

    /** 准时率 */
//    @Excel(name = "准时率")
//    private BigDecimal punctualityRate;

    /** 异常运单数 */
    @Excel(name = "异常运单数")
    private Long abnormalOrders;

    /** 异常率 */
//    @Excel(name = "异常率")
//    private BigDecimal abnormalRate;

    /** 里程合计(km) */
    @Excel(name = "里程合计(km)")
    private Double totalMileage;

    public void setDriverId(String driverId)
    {
        this.driverId = driverId;
    }

    public String getDriverId()
    {
        return driverId;
    }
    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setDriverName(String driverName)
    {
        this.driverName = driverName;
    }

    public String getDriverName()
    {
        return driverName;
    }
    public void setPhoneNumber(String phoneNumber)
    {
        this.phoneNumber = phoneNumber;
    }

    public String getPhoneNumber()
    {
        return phoneNumber;
    }
    public void setCompletedOrders(Long completedOrders)
    {
        this.completedOrders = completedOrders;
    }

    public Long getCompletedOrders()
    {
        return completedOrders;
    }
    public void setOnTimeOrders(Long onTimeOrders)
    {
        this.onTimeOrders = onTimeOrders;
    }

    public Long getOnTimeOrders()
    {
        return onTimeOrders;
    }

    public void setAbnormalOrders(Long abnormalOrders)
    {
        this.abnormalOrders = abnormalOrders;
    }

    public Long getAbnormalOrders()
    {
        return abnormalOrders;
    }

    public void setTotalMileage(Double totalMileage)
    {
        this.totalMileage = totalMileage;
    }

    public Double getTotalMileage()
    {
        return totalMileage;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("driverId", getDriverId())
            .append("id", getId())
            .append("driverName", getDriverName())
            .append("phoneNumber", getPhoneNumber())
            .append("completedOrders", getCompletedOrders())
            .append("onTimeOrders", getOnTimeOrders())
//            .append("punctualityRate", getPunctualityRate())
            .append("abnormalOrders", getAbnormalOrders())
//            .append("abnormalRate", getAbnormalRate())
            .append("totalMileage", getTotalMileage())
            .toString();
    }
}
